package com.niiwoo.civet.user.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 资产端来源
 *
 * @author lichuanzhi
 * @date 2018/03/06
 */

@Getter
@AllArgsConstructor
public enum AssetSourceEnum {
    R360((byte) 1, "融360"),
    CARD_NIU((byte) 2, "卡牛"),
    HUIJIE((byte) 3, "汇介");

    private Byte value;
    private String desc;

    public static AssetSourceEnum of(byte value) {
        for (AssetSourceEnum t : values()) {
            if (t.value == value) {
                return t;
            }
        }
        return null;
    }

}
